//
//  ChangeLogoResponse.m
//  NPS
//
//  Created by jadd on 15/10/21.
//  Copyright © 2015年 jadd. All rights reserved.
//

#import "ChangeLogoResponse.h"

@implementation ChangeLogoResponse
- (void)setResponseObject:(id)responseObject {
    _responseObject = responseObject;
    if (responseObject) {
        //NSString *status = [responseObject objectForKey:@"status"];
        NSString *link = [responseObject objectForKey:@"file_link"];

        NSString *stringUrl = [[NSString alloc] initWithFormat:@"%@?imageMogr2/thumbnail/x35",link];
        //NSString *stringUrl = [[NSString alloc] initWithFormat:@"%@?imageMogr2/thumbnail/180x35!",link];
        
        NSLog(@"%@",stringUrl);
        [[NSUserDefaults standardUserDefaults] setObject:stringUrl forKey:UserDefault_logo];
        
        
        while (![[NSUserDefaults standardUserDefaults] synchronize])
        {
        }
    }
}

@end
